package com.mixsmart.commonweb.bean.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.mixsmart.commonweb.bean.ICreateTime;
import com.mixsmart.commonweb.bean.IPKStringBean;

/**
 * 操作标示--实体类；（即：定义操作按钮）
 * @author lmq
 * @version 1.0
 * @since JDK版本大于等于1.6
 * 2016年3月8日
 */
@Entity
@Table(name="t_c_operate_flag")
public class TCOperateFlag implements IPKStringBean, ICreateTime {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3137988197384565254L;

	private String id;
	
	private String name;
	
	/**
	 * 操作名称；如：add，edit，delete等标示
	 */
	private String actionName;
	
	private Integer state;
	
	private Date createTime;
	
	private Integer sortNum;

	@Id
	@Column(name="id",length=50)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="name",length=127,nullable=false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name="action_name",length=50,nullable=false,unique=true)
	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	@Column(name="state")
	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time", updatable=false)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name="sort_num")
	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}
	
}
